home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qkeycode.h.z / qkeycode.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  7.2 KB  |  277 lines

  1. /****************************************************************************
  2. ** $Id: qkeycode.h,v 2.7 1998/07/03 00:09:34 hanord Exp $
  3. **
  4. ** Definition of keyboard codes
  5. **
  6. ** Created : 931030
  7. **
  8. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  9. **
  10. ** This file is part of Qt Free Edition, version 1.40.
  11. **
  12. ** See the file LICENSE included in the distribution for the usage
  13. ** and distribution terms, or http://www.troll.no/free-license.html.
  14. **
  15. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  16. ** your own programs or libraries.
  17. **
  18. ** Please see http://www.troll.no/pricing.html for information about 
  19. ** Qt Professional Edition, which is this same library but with a
  20. ** license which allows creation of commercial/proprietary software.
  21. **
  22. *****************************************************************************/
  23.  
  24. #ifndef QKEYCODE_H
  25. #define QKEYCODE_H
  26.  
  27. #ifndef QT_H
  28. #include "qglobal.h"
  29. #endif // QT_H
  30.  
  31.  
  32. const uint SHIFT    = 0x00002000;        // accelerator modifiers
  33. const uint CTRL        = 0x00004000;
  34. const uint ALT        = 0x00008000;
  35. const uint ASCII_ACCEL    = 0x10000000;
  36.  
  37.  
  38. #define Key_Escape        0x1000        // misc keys
  39. #define Key_Tab            0x1001
  40. #define Key_Backtab        0x1002
  41. #define Key_Backspace        0x1003
  42. #define Key_Return        0x1004
  43. #define Key_Enter        0x1005
  44. #define Key_Insert        0x1006
  45. #define Key_Delete        0x1007
  46. #define Key_Pause        0x1008
  47. #define Key_Print        0x1009
  48. #define Key_SysReq        0x100a
  49.  
  50. #define Key_Home        0x1010        // cursor movement
  51. #define Key_End            0x1011
  52. #define Key_Left        0x1012
  53. #define Key_Up            0x1013
  54. #define Key_Right        0x1014
  55. #define Key_Down        0x1015
  56. #define Key_Prior        0x1016
  57. #define Key_PageUp        Key_Prior
  58. #define Key_Next        0x1017
  59. #define Key_PageDown        Key_Next
  60.  
  61. #define Key_Shift        0x1020        // modifiers
  62. #define Key_Control        0x1021
  63. #define Key_Meta        0x1022
  64. #define Key_Alt            0x1023
  65. #define Key_CapsLock        0x1024
  66. #define Key_NumLock        0x1025
  67. #define Key_ScrollLock        0x1026        // see translateKeyEvent()
  68.  
  69. #define Key_F1            0x1030        // function keys
  70. #define Key_F2            0x1031
  71. #define Key_F3            0x1032
  72. #define Key_F4            0x1033
  73. #define Key_F5            0x1034
  74. #define Key_F6            0x1035
  75. #define Key_F7            0x1036
  76. #define Key_F8            0x1037
  77. #define Key_F9            0x1038
  78. #define Key_F10            0x1039
  79. #define Key_F11            0x103a
  80. #define Key_F12            0x103b
  81. #define Key_F13            0x103c
  82. #define Key_F14            0x103d
  83. #define Key_F15            0x103e
  84. #define Key_F16            0x103f
  85. #define Key_F17            0x1040
  86. #define Key_F18            0x1041
  87. #define Key_F19            0x1042
  88. #define Key_F20            0x1043
  89. #define Key_F21            0x1044
  90. #define Key_F22            0x1045
  91. #define Key_F23            0x1046
  92. #define Key_F24            0x1047
  93. #define Key_F25            0x1048        // F25 .. F35 only on X11
  94. #define Key_F26            0x1049
  95. #define Key_F27            0x104a
  96. #define Key_F28            0x104b
  97. #define Key_F29            0x104c
  98. #define Key_F30            0x104d
  99. #define Key_F31            0x104e
  100. #define Key_F32            0x104f
  101. #define Key_F33            0x1050
  102. #define Key_F34            0x1051
  103. #define Key_F35            0x1052
  104.  
  105. #define Key_Space        0x20        // 7 bit printable ASCII
  106. #define Key_Exclam        0x21
  107. #define Key_QuoteDbl        0x22
  108. #define Key_NumberSign        0x23
  109. #define Key_Dollar        0x24
  110. #define Key_Percent        0x25
  111. #define Key_Ampersand        0x26
  112. #define Key_Apostrophe        0x27
  113. #define Key_ParenLeft        0x28
  114. #define Key_ParenRight        0x29
  115. #define Key_Asterisk        0x2a
  116. #define Key_Plus        0x2b
  117. #define Key_Comma        0x2c
  118. #define Key_Minus        0x2d
  119. #define Key_Period        0x2e
  120. #define Key_Slash        0x2f
  121. #define Key_0            0x30
  122. #define Key_1            0x31
  123. #define Key_2            0x32
  124. #define Key_3            0x33
  125. #define Key_4            0x34
  126. #define Key_5            0x35
  127. #define Key_6            0x36
  128. #define Key_7            0x37
  129. #define Key_8            0x38
  130. #define Key_9            0x39
  131. #define Key_Colon        0x3a
  132. #define Key_Semicolon        0x3b
  133. #define Key_Less        0x3c
  134. #define Key_Equal        0x3d
  135. #define Key_Greater        0x3e
  136. #define Key_Question        0x3f
  137. #define Key_At            0x40
  138. #define Key_A            0x41
  139. #define Key_B            0x42
  140. #define Key_C            0x43
  141. #define Key_D            0x44
  142. #define Key_E            0x45
  143. #define Key_F            0x46
  144. #define Key_G            0x47
  145. #define Key_H            0x48
  146. #define Key_I            0x49
  147. #define Key_J            0x4a
  148. #define Key_K            0x4b
  149. #define Key_L            0x4c
  150. #define Key_M            0x4d
  151. #define Key_N            0x4e
  152. #define Key_O            0x4f
  153. #define Key_P            0x50
  154. #define Key_Q            0x51
  155. #define Key_R            0x52
  156. #define Key_S            0x53
  157. #define Key_T            0x54
  158. #define Key_U            0x55
  159. #define Key_V            0x56
  160. #define Key_W            0x57
  161. #define Key_X            0x58
  162. #define Key_Y            0x59
  163. #define Key_Z            0x5a
  164. #define Key_BracketLeft        0x5b
  165. #define Key_Backslash        0x5c
  166. #define Key_BracketRight    0x5d
  167. #define Key_AsciiCircum        0x5e
  168. #define Key_Underscore        0x5f
  169. #define Key_QuoteLeft        0x60
  170. #define Key_BraceLeft        0x7b
  171. #define Key_Bar            0x7c
  172. #define Key_BraceRight        0x7d
  173. #define Key_AsciiTilde        0x7e
  174.  
  175. // Latin 1 codes adapted from X: keysymdef.h,v 1.21 94/08/28 16:17:06
  176.  
  177. #define Key_nobreakspace    0x0a0
  178. #define Key_exclamdown        0x0a1
  179. #define Key_cent        0x0a2
  180. #define Key_sterling        0x0a3
  181. #define Key_currency        0x0a4
  182. #define Key_yen            0x0a5
  183. #define Key_brokenbar        0x0a6
  184. #define Key_section        0x0a7
  185. #define Key_diaeresis        0x0a8
  186. #define Key_copyright        0x0a9
  187. #define Key_ordfeminine        0x0aa
  188. #define Key_guillemotleft    0x0ab    /* left angle quotation mark */
  189. #define Key_notsign        0x0ac
  190. #define Key_hyphen        0x0ad
  191. #define Key_registered        0x0ae
  192. #define Key_macron        0x0af
  193. #define Key_degree        0x0b0
  194. #define Key_plusminus        0x0b1
  195. #define Key_twosuperior        0x0b2
  196. #define Key_threesuperior    0x0b3
  197. #define Key_acute        0x0b4
  198. #define Key_mu            0x0b5
  199. #define Key_paragraph        0x0b6
  200. #define Key_periodcentered    0x0b7
  201. #define Key_cedilla        0x0b8
  202. #define Key_onesuperior        0x0b9
  203. #define Key_masculine        0x0ba
  204. #define Key_guillemotright    0x0bb    /* right angle quotation mark */
  205. #define Key_onequarter        0x0bc
  206. #define Key_onehalf        0x0bd
  207. #define Key_threequarters    0x0be
  208. #define Key_questiondown    0x0bf
  209. #define Key_Agrave        0x0c0
  210. #define Key_Aacute        0x0c1
  211. #define Key_Acircumflex        0x0c2
  212. #define Key_Atilde        0x0c3
  213. #define Key_Adiaeresis        0x0c4
  214. #define Key_Aring        0x0c5
  215. #define Key_AE            0x0c6
  216. #define Key_Ccedilla        0x0c7
  217. #define Key_Egrave        0x0c8
  218. #define Key_Eacute        0x0c9
  219. #define Key_Ecircumflex        0x0ca
  220. #define Key_Ediaeresis        0x0cb
  221. #define Key_Igrave        0x0cc
  222. #define Key_Iacute        0x0cd
  223. #define Key_Icircumflex        0x0ce
  224. #define Key_Idiaeresis        0x0cf
  225. #define Key_ETH            0x0d0
  226. #define Key_Ntilde        0x0d1
  227. #define Key_Ograve        0x0d2
  228. #define Key_Oacute        0x0d3
  229. #define Key_Ocircumflex        0x0d4
  230. #define Key_Otilde        0x0d5
  231. #define Key_Odiaeresis        0x0d6
  232. #define Key_multiply        0x0d7
  233. #define Key_Ooblique        0x0d8
  234. #define Key_Ugrave        0x0d9
  235. #define Key_Uacute        0x0da
  236. #define Key_Ucircumflex        0x0db
  237. #define Key_Udiaeresis        0x0dc
  238. #define Key_Yacute        0x0dd
  239. #define Key_THORN        0x0de
  240. #define Key_ssharp        0x0df
  241. #define Key_agrave        0x0e0
  242. #define Key_aacute        0x0e1
  243. #define Key_acircumflex        0x0e2
  244. #define Key_atilde        0x0e3
  245. #define Key_adiaeresis        0x0e4
  246. #define Key_aring        0x0e5
  247. #define Key_ae            0x0e6
  248. #define Key_ccedilla        0x0e7
  249. #define Key_egrave        0x0e8
  250. #define Key_eacute        0x0e9
  251. #define Key_ecircumflex        0x0ea
  252. #define Key_ediaeresis        0x0eb
  253. #define Key_igrave        0x0ec
  254. #define Key_iacute        0x0ed
  255. #define Key_icircumflex        0x0ee
  256. #define Key_idiaeresis        0x0ef
  257. #define Key_eth            0x0f0
  258. #define Key_ntilde        0x0f1
  259. #define Key_ograve        0x0f2
  260. #define Key_oacute        0x0f3
  261. #define Key_ocircumflex        0x0f4
  262. #define Key_otilde        0x0f5
  263. #define Key_odiaeresis        0x0f6
  264. #define Key_division        0x0f7
  265. #define Key_oslash        0x0f8
  266. #define Key_ugrave        0x0f9
  267. #define Key_uacute        0x0fa
  268. #define Key_ucircumflex        0x0fb
  269. #define Key_udiaeresis        0x0fc
  270. #define Key_yacute        0x0fd
  271. #define Key_thorn        0x0fe
  272. #define Key_ydiaeresis        0x0ff
  273.  
  274. #define Key_unknown        0xffff
  275.  
  276. #endif // QKEYCODE_H
  277.